<?php

namespace dengje\workerman\process\httpServer;

class Response extends \Workerman\Protocols\Http\Response
{
	public function withHeaders($headers, bool $merge = false): Response|static
	{
		if ($merge) {
			parent::withHeaders($headers);
		} else {
			$this->_header = $headers;
		}

		return $this;
	}
}